I can't access the initial state of my useState hook inside of my method to change the state